def sum_number(num):
    print(num)
    if num == 1:
        # 递归的出口
        return 1
    # 进行递归求和
    return num + sum_number(num - 1)


print(sum_number(3))
